package icu.makka.yygh.repository;

import icu.makka.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HospitalRepository extends MongoRepository<Hospital, String> {

    //根据医院编码查询医院信息
    Hospital getHospitalByHoscode(String hoscode);

    //根据医院名称查询
    List<Hospital> findHospitalByHosnameLike(String hosname);

    //获取医院详细信息
    Hospital findHospitalByHoscode(String hoscode);
}
